package cn.chenli.job.tool.engine.java;

import java.net.URL;
import java.net.URLClassLoader;

/**
 * java加载class
 *
 * Created by 陈李 on 2017.08.10
 */
public class DynamicClassLoader extends URLClassLoader {

    private ClassLoader parent;

    DynamicClassLoader(URL[] urls, ClassLoader parent) {
        super(urls, parent);
        this.parent = parent;
    }

    @Override
    public Class<?> loadClass(String name) throws ClassNotFoundException {
        return super.loadClass(name);
    }

    @Override
    public Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {
        return super.loadClass(name, resolve);
    }
}